package com.coffee.sku.service.sku.dao;

import com.coffee.sku.api.sku.query.SkuCategoryQuery;
import com.coffee.sku.service.sku.bean.SkuCategory;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SkuCategoryDao {
	public SkuCategory findById(Integer id);
	
	public SkuCategory findByIdForUpdate(Integer id);
	
	public List<SkuCategory> findByIds(@Param("idList") List<Integer> idList);

	public Integer count(@Param("param") SkuCategoryQuery param);

	public List<SkuCategory> page(@Param("param") SkuCategoryQuery param, @Param("offset") Integer offset, @Param("rows") Integer rows);

	public List<SkuCategory> getList(@Param("param") SkuCategoryQuery param);

	public SkuCategory findFirst(@Param("param") SkuCategoryQuery param);

	public Integer insert(SkuCategory param);

	Integer insertBatch(List<SkuCategory> list);

	public void updateById(@Param("param") SkuCategory param);
	
	public Integer deleteById(Integer id);
	
	public Integer deleteByIds(List<Integer> idList);
	
}